#!/usr/local/bin/lua
--
--	Chapter 22	-	Other System Functions
--
--	Michael Ge
--	2014.05.19
--

print("====================")

print(os.getenv("HOME"))

print("====================")

function createDir(dirname)
	os.execute("mkdir " .. dirname)
end

local folderName = os.getenv("HOME") .. "/testdir"
createDir(folderName)

print("====================")

print(os.setlocale("pt_BR"))
s = "return (" .. 3.4 .. ")"
print(s)
print(loadstring(s))

print("====================")